package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 回复对象 analyse_replies
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
public class AnalyseReplies extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 回复表用于主键，唯一标识每条回复 */
    private Long id;

    /** 外键，指向评论表，表示回复的原始评论 */
    @Excel(name = "外键，指向评论表，表示回复的原始评论")
    private Long commentId;

    /** 外键，指向用户表，表示回复的作者 */
    @Excel(name = "外键，指向用户表，表示回复的作者")
    private Long userId;

    /** 回复的内容 */
    @Excel(name = "回复的内容")
    private String content;

    /** 回复创建的时间戳 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回复创建的时间戳", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间戳，记录回复最后一次更新的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间戳，记录回复最后一次更新的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likesCount;

    /** 外键，可选字段，指向本表自身，表示回复的父回复 */
    @Excel(name = "外键，可选字段，指向本表自身，表示回复的父回复")
    private Long parentId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setLikesCount(Long likesCount) 
    {
        this.likesCount = likesCount;
    }

    public Long getLikesCount() 
    {
        return likesCount;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("likesCount", getLikesCount())
            .append("parentId", getParentId())
            .toString();
    }
}
